package com.bhs.sansong.adapter;

import androidx.annotation.NonNull;

import com.bhs.sansong.R;
import com.bhs.sansong.bean.SystemMessagesBean;
import com.bhs.sansong.utils.DateUtils;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

public class SystemMessagesAdapter extends BaseQuickAdapter<SystemMessagesBean, BaseViewHolder> {

    public SystemMessagesAdapter() {
        super(R.layout.item_system_message);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, SystemMessagesBean item) {
        helper.setText(R.id.tv_title,item.getTitle());
        helper.setText(R.id.tv_content,item.getContent());
        helper.setText(R.id.tv_time, DateUtils.descriptiveData(item.getCreate_time()));
    }
}
